﻿using RpcHelper.Validate;
namespace Wedonek.RpcStore.Service.Model
{
        public class VerConfigDatum
        {
                /// <summary>
                /// 所属集群
                /// </summary>
                [NumValidate("rpc.mer.id.error",1)]
                public long RpcMerId
                {
                        get;
                        set;
                }
                /// <summary>
                /// 版本号 版本格式 "001.001.001" 去掉 点
                /// </summary>
                [NumValidate ("rpc.ver.num.error", 1000000,999999999)]
                public long VerNum { get; set; }
                /// <summary>
                /// 系统节点类型
                /// </summary>
                [NumValidate ("rpc.system.type.id.error", 1)]
                public long SystemTypeId { get; set; }
                /// <summary>
                /// 版本名
                /// </summary>
                [NullValidate("rpc.ver.title.null")]
                [LenValidate ("rpc.ver.title.len",2,50)]
                public string VerTitle { get; set; }
                /// <summary>
                /// 版本说明
                /// </summary>
                [LenValidate ("rpc.ver.show.len", 0, 500)]
                public string VerShow { get; set; }
                /// <summary>
                /// 是否启用
                /// </summary>
                public bool IsEnable { get; set; }
        }
}
